package cn.gcjxsc.common.consts;

/**
 * @author pumbaa
 * @since 1.0
 */
public enum RedPackStatus {
    PROCESSING, FAIL, SUCCESS;

    public static RedPackStatus fromCode(int status) {
        RedPackStatus[] values = RedPackStatus.values();
        for (RedPackStatus value : values) {
            if (value.ordinal() == status) {
                return value;
            }
        }
        return PROCESSING;
    }
}
